// import Home from '../pages/home.vue'
import Home from '../components/home.vue'
import Login from '../pages/login.vue'
import Dept from '../pages/eip/dept.vue'
import MenuManage from '../pages/eip/menu-manage.vue'
import RoleManage from '../pages/eip/role-manage.vue'
// import UserManage from '../pages/user/user.vue'
import CodeTable from '../pages/eip/codetable.vue'
import Page from '../pages/eip/page.vue'
import PageElement from '../pages/eip/page-element.vue'
import Authorization from '../pages/eip/authorization.vue'
import Table from '../pages/eip/table.vue'


import AppRouter from './app-router.js'

/**
 * 定义base的router路径，不动滴，通用滴 
 */

var children = [
    {
        path: '/dept',
        component: Dept
    }, {
        path: '/menu-manage',
        component: MenuManage
    }, {
        path: '/role-manage',
        component: RoleManage
    }, {
        path: '/codetable',
        component: CodeTable
    }, {
        path: '/page',
        component: Page
    }, {
        name: "element",
        path: '/pages/:id/elements',
        component: PageElement
    }, {
        name: "authorization",
        path: '/authorization',
        component: Authorization
    }, {
        name: "table",
        path: '/table',
        component: Table
    }];

//把eip的路由和app的路由加在一起
children.push.apply(children, AppRouter)

//定义总的路由
const base_routes = [{
    path: '/login',
    component: Login
}, {
    path: '/',
    component: Home,
    children: children
}]

export default base_routes;